Skip to content

Conversation

@allexoll
Copy link
Contributor

Aqara SRTS-A01 currently exposes device_temperature which I suspect is the microcontroller's internal temperature (usually a few degrees higher than the air temp, and only has 1° precision, whereas this one has 0.1°)

The device also has local_temperature which seems to be the air temperature, and already is the measured temperature for the climate entity. this means that local_temperature is not exposed as a sensor. This fixes it.

Potentially, we could keep both, but I'm not familiar enough with the dev of this project to make it clear which is which (if you keep both, you have 2 sensors exposed, and it's difficult to know which is which because they both are named temperature.)

Also, since local_temperature is only access.STATE, you have to wait until it is reported to get a value, so it might be unavailable on startup?

Open for suggestions

switch `device_temperature` with `local_temperature`
@Koenkk
Copy link
Owner

Koenkk commented Oct 23, 2025

Let's keep both to prevent a breaking change.

@allexoll
Copy link
Contributor Author

done!

@Koenkk Koenkk merged commit ea0355a into Koenkk:master Oct 24, 2025
3 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Oct 24, 2025

thanks!

@Koenkk
Copy link
Owner

Koenkk commented Oct 27, 2025

I reverted this because it caused Nerivec/zigbee2mqtt-windfront#311, after taking a closer look it seems it was exposed twice (also with .withLocalTemperature(ea.STATE, "Current temperature measured by the internal or external sensor")). Where was the local temperature not exposed?

Koenkk added a commit that referenced this pull request Oct 27, 2025
@allexoll
Copy link
Contributor Author

allexoll commented Nov 1, 2025

It is already exposed but only as part of the climate entity, which makes it not available as a sensor in itself.

with the additional "standalone" local_temperature as it was in this PR:
Screenshot 2025-11-01 at 10 22 04

without the change, it looks like this:
Screenshot 2025-11-01 at 10 30 10

without it, the sensor part is empty, and so if you want to use, let's say BetterThermostat, the only temperature sensor available is the device_temperature which is part of the diagnostics, and is a few degrees higher.

Maybe my change is not the correct way to add it, so I'm open to suggestions, but I think the actual temperature should be available, and not through the climate entity, also because it is muxed behind "either this or an external sensor"

What do you think?

jacky202509 pushed a commit to jacky202509/zigbee-herdsman-converters that referenced this pull request Nov 13, 2025
jacky202509 pushed a commit to jacky202509/zigbee-herdsman-converters that referenced this pull request Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants